package com.qf.commons.base.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.qf.commons.base.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 *
 *            public protected default private
 * 当前类        ok     ok       ok       ok
 * 子类          ok     ok
 * 同包下的类     ok     ok      ok
 * 不同包的类     ok
 *
 * author Ken
 * create_time 2022/11/25
 */
@Data
public class BaseUser extends BaseEntity implements Serializable {

    //用户id
    @TableId(type = IdType.AUTO)
    protected Long id;

    //客户端的来源 0-教师端 1-学生端
    @TableField(exist = false)
    protected Integer fromType;

    public BaseUser(Integer fromType) {
        this.fromType = fromType;
    }
}
